package com.scilvet.reportcomposer.misc;

import java.math.BigDecimal;
import java.math.MathContext;
import java.math.RoundingMode;

public class Misc {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		BigDecimal bigDecimal = new BigDecimal("1.153", MathContext.UNLIMITED);
		System.out.println(bigDecimal);
		System.out.println(bigDecimal.setScale(2, RoundingMode.HALF_UP));
		System.out.println(bigDecimal.scale());
		System.out.println(bigDecimal.divide(new BigDecimal(3), 22, RoundingMode.HALF_UP));
		//System.out.println(bigDecimal.setScale(-2));
		//System.out.println(bigDecimal.setScale(2));
	}

}
